/**
 * 环境变量
 */
// const NODE_ENV = process.env.CUSTOM_NODE_ENV || process.env.NODE_ENV
// console.log(import.meta.env)
const NODE_ENV = import.meta.env.VITE_USER_NODE_ENV || import.meta.env.MODE
let httpApi = ''
let wsApi = ''
let uploadApi = ''
if (NODE_ENV == 'development') { //开发环境
	// #ifdef H5
	httpApi = '/prefix'
	// #endif
	// #ifdef MP-WEIXIN
	httpApi = 'https://jr.qichen168.com'
	// #endif
	wsApi = 'wss://m.lnyiyao.com/testser'
	uploadApi = 'https://m.lnyiyao.com/testser'
}
if (NODE_ENV == 'production') { // 生产环境
	httpApi = 'https://jr.qichen168.com'
	wsApi = 'wss://m.lnyiyao.com'
	uploadApi = 'https://m.lnyiyao.com'
}
// #ifdef TEST-WEIXIN
//测试环境下域名配置
httpApi = 'https://jr.qichen168.com'
wsApi = 'wss://m.lnyiyao.com/testser'
uploadApi = 'https://m.lnyiyao.com/testser'
// #endif
export const itemID = {
	baseUrl: httpApi,
	VUE_APP_WS_URL_SECOND: wsApi,
	UPLOAD_URL: uploadApi
}

export default itemID